export default {
  namespaced: true,
  state: {
    userinfo: {
      id: "",
      username: "",
      birthday: "",
      email: "",
      iphone: "",
      motto: "",
      sex: "",
      password: "",
      token: ""
    }
  },
  getters: {
    //获取信息
    getUserInfo: state => {
      return state.userinfo;
    }
  },
  mutations: {
    //设置所有信息
    setUserInfo(state, info) {
      console.log("infoffff", info);
      state.userinfo = info;
    }
  },
  actions: {}
};
